{extend name="public:base" /}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__INDEX__/css/public.css">
<link rel="stylesheet" type="text/css" href="__INDEX__/css/style.css">
<link rel="stylesheet" type="text/css" href="__INDEX__/css/responsive.css">
<link rel="shortcut icon" href="__INDEX__/images/favorite.ico">
{/block}

{block name="html"}
    {include file="index@public/main" /}
    <div class="right_style">
        <h3 class="title_style"><em></em><span>个人中心</span></h3>
        <div id="user">
            <div class="user_cash">
                <div>
                    <p><img src="__INDEX__/images/user_img_05.png"></p>
                    <p>余额：<span>{$user['money']}</span></p>
                </div>
                <div>
                    <p><img src="__INDEX__/images/user_img_04.png"></p>
                    <p>订单：<span>{$num}</span></p>
                </div>
                <div>
                    <p><img src="__INDEX__/images/user_img_07.png"></p>
                    <p><span>{$user['level']}</span></p>
                </div>
                <!--<div>
                    <p><img src="images/user_img_06.png"></p>
                    <p>积分：<span>230</span></p>
                </div>-->
            </div>
            <div id="order">
                <div class="Order_form_filter">
                    <a href="{:url('User/index',array('status'=>'all'))}" class="{$status=='all'?'active':''}">全部订单</a>
                    <a href="{:url('User/index',array('status'=>'que'))}" class="{$status=='que'?'active':''}">待确认</a>
                    <a href="{:url('User/index',array('status'=>'fahuo'))}" class="{$status=='fahuo'?'active':''}">待发货</a>
                    <a href="{:url('User/index',array('status'=>'shouhuo'))}" class="{$status=='shouhuo'?'active':''}">待收货</a>
                    <a href="{:url('User/index',array('status'=>'wanchang'))}" class="{$status=='wanchang'?'active':''}">已完成</a>
                </div>
                <div class="Tab">
                    {if condition="$data"}
                    <!--全部交易-->
                    <div class="Order_form_list on">
                        <div class="Order_form_list_top">
                            <p class="list0">商品</p>
                            <p class="list1">单价</p>
                            <p class="list2">数量</p>
                            <p class="list3">合计</p>
                            <p class="list4">操作</p>
                        </div>
                        <ul>
                            {volist name='data' id='vo'}
                            <li>
                                <div class="order-index-top" name="{$vo.id}">
                                    <p class="l" >订单号：<span>{$vo.order_sn}</span></p>
                                    <p class="r" >时间：<span>{$vo.add_time|date="Y-m-d H:m",###}</span></p>
                                </div>
                                <div class="order-proBg_all">
                                    <div class="order-proBg">
                                        <div class="order-index">
                                            <div class="list0" >
                                                <a href="javascript:;">
                                                    <img src="{$vo.goods_image}" />
                                                    <div class="l">
                                                        <p class="name">{$vo.goods_name}</p>
                                                    </div>
                                                </a>
                                            </div>
                                            <div class="list1 price">
                                                <p>￥{$vo.goods_price}</p>
                                            </div>
                                            <p class="list2">X <span>{$vo.num}</span></p>
                                        </div>
                                    </div>
                                    <p class="list3 status">￥{$vo.amount}</p>
                                    <div class="list4 opeation">

                                        {if condition="$vo.z_time eq 0"}
                                        <a href="javascript:;" class="opea to_pay" name="{$vo.order_sn}">提货</a>
                                        {elseif condition="$vo.f_time eq 0" /}
                                        <a href="javascript:;" class="opea">待发货</a>
                                        {elseif condition="$vo.q_time eq 0" /}
                                        <a href="javascript:;" class="opea">待收货</a>
                                        {else /}
                                        <a href="javascript:;" class="opea">已完成</a>
                                        {/if}
                                        <a class="opea del">删除订单</a>
                                    </div>
                                </div>
                            </li>
                            {/volist}
                        </ul>
                    </div>
                    {else /}

                    <!--没有记录时显示-->
                    <div class="no_record" style="width: 200px;text-align: center;margin: 0 auto;margin-top: 100px;">
                        <img src="__INDEX__/images/kong.png" style="width: 100px;" />
                        <p style="text-align: center;color: #555;font-size: 14px;">暂无订单</p>
                    </div>
                    {/if}
                </div>
            </div>
        </div>
    </div>
    <div id="app_user">
        <div class="persen" style="background: #d82020;">
            <div class="persen_1">
                <img src="{$user['portrait']}">
                <div class="r">
                    <p class="name">{$user['nickname']}</p>
                    <div class="jiebie">
                    <p>{if condition="$user['level']"}
                    
                        {$user['level']}
                    {else /}
                        注册会员
                    {/if}

                    {if condition="$user['agent']"}
                    <span> ({$user['agent']})</span>
                    
                    {/if}</p>
                </div>
                </div>
            </div>
            <div class="persen_2">
                <p>余额：<span>￥{$user['money']}</span></p>
                <!-- <p>积分：<span>0</span></p> -->
            </div>
        </div>
        <ul class="user_ul">
            <!--常用功能-->
            <h4 class="title"><img src="__INDEX__/images/ico-changyong.png">常用功能</h4>
            <a href="{:url('User/edit_msg')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_user.png" class="icon"></p>
                    <p class="txt">修改个人资料</p>
                </li>
            </a>
            <a href="{:url('Order/order_list')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_order.png" class="icon"></p>
                    <p class="txt">我的订单</p>
                </li>
            </a>
            <a href="{:url('Depot/index')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_order.png" class="icon"></p>
                    <p class="txt">云仓</p>
                </li>
            </a>
            <a href="{:url('User/address')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_address.png" class="icon"></p>
                    <p class="txt">我的地址</p>
                </li>
            </a>
            <a href="my_card.html">
            </a>
            <a href="{:url('Deposit/card_list')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_tixian.png" class="icon"></p>
                    <p class="txt">银行卡</p>
                </li>
            </a>
            <a href="{:url('Deposit/cash')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_tixian.png" class="icon"></p>
                    <p class="txt">提现</p>
                </li>
            </a>
            <a href="{:url('Deposit/tixian_record')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_record.png" class="icon"></p>
                    <p class="txt">提现记录</p>
                </li>
            </a>
            <a href="{:url('proceeds/index')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_record.png" class="icon"></p>
                    <p class="txt">收益记录</p>
                </li>
            </a>

            <!-- <a href="pinglun.html">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_pinglun.png" class="icon"></p>
                    <p class="txt">我的评论</p>
                </li>
            </a> -->
        </ul>
        <ul class="user_ul">
            <!--常用功能-->
            <h4 class="title"><img src="__INDEX__/images/ico-changyong.png">扩展功能</h4>
            <a href="{:url('team/index')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_user.png" class="icon"></p>
                    <p class="txt">我的团队</p>
                </li>
            </a>
            <a href="{:url('user/my_code')}">
                <li>
                    <p class="icon-p"><img src="__INDEX__/images/ico_user.png" class="icon"></p>
                    <p class="txt">我的推广码</p>
                </li>
            </a>
        </ul>
        <a href='{:url("Login/logout")}' class="exit">退出</a>
    </div>
    
{/block}
{block name="javascript"}
<script src="__INDEX__/js/jquery-1.9.1.min.js"></script>
<script src="__INDEX__/js/public.js"></script>
<script src="__INDEX__/layer/layer.js"></script>
<script>
	$(".anjian a").click(function(){
		$(".gonggao").hide();
	});
	
	 /*$('.countdown').downCount({
            date: '{$userArr.end_time}',
            offset: +10
        }, function () {
//            alert('倒计时结束!');
        });*/
</script>
{/block}
